package ltd.bugs.tool.signature.utils;

import java.io.Closeable;
import java.io.IOException;

/**
 * @author zhengzhq
 * @Title: IOUtils
 * @Description: IO相关的资源关闭
 * @date 2018/8/30上午9:57
 */
public class IOUtils {

  /**
   * 关闭资源
   */
  public static void close(Closeable closeable) {
    if (closeable != null) {
      try {
        closeable.close();
      } catch (IOException e) {
        throw new RuntimeException(e);
      }
    }
  }
}
